package com.zdb.n1.repository;

import com.zdb.n1.entity.ExerciseType;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

@Repository
public interface ExerciseTypeRepository extends JpaRepository<ExerciseType, Long> {

    Optional<ExerciseType> findByName(String name);

    List<ExerciseType> findByCategory(ExerciseType.Category category);

    boolean existsByName(String name);
} 